package com.example.easybuy.service;


import com.example.easybuy.pojo.EasybuyNews;
import com.example.easybuy.pojo.EasybuyUser;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 张子晨
 * @since 2021-03-12
 */
public interface EasybuyUserService {
    //用户登录
    public EasybuyUser login(String loginName, String password);

    //查询用户是否存在
    public String searchUser(String loginName, String password);

    //注册用户
    public int registerUser(String loginName, String password, String email, String mobile);

    //判断登录名是否重名
    public int loginNameCount(String loginName);

    EasybuyUser selectUserById(Integer id);

    //分页查询所有用户
    public PageInfo<EasybuyUser> userAll(int pageNum, int pageSize);

    //删除用户
    int delUser(Integer id);
}
